Fix defaultvalue test due to csw
authorAlexander Larsson <alexl@redhat.com>
Wed, 8 Jul 2009 14:59:14 +0000 (16:59 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 8 Jul 2009 16:47:43 +0000 (18:47 +0200)
Initialize GdkWindowAttr required fields. This makes sure toplevel
windows are not accidentally larger than 16bit.

gtk/tests/defaultvalue.c

index 8451490948e67fe47b37ce098d8cb0db43abfc7d..3d3b988402d88a3d4e5512b2015cde91139051ac 100644 (file)
@@ -102,6 +102,9 @@ test_type (gconstpointer data)
     {
       GdkWindowAttr attributes;
       attributes.window_type = GDK_WINDOW_TEMP;
+      attributes.event_mask = 0;
+      attributes.width = 100;
+      attributes.height = 100;
       instance = g_object_ref (gdk_window_new (NULL, &attributes, 0));
     }
   else